Skip to content

[PWGJE] emcEventSelectionQA: compare EMCal trigger aliases with CTP c… - #19109

Open
mhemmer-cern wants to merge 1 commit into
AliceO2Group:masterfrom
mhemmer-cern:emcal-event-qa
Open

mhemmer-cern wants to merge 1 commit into
AliceO2Group:masterfrom
mhemmer-cern:emcal-event-qa

Conversation

@mhemmer-cern

Copy link
Copy Markdown
Collaborator

…lasses and inputs

Add an optional Run 3 QA (processCTPComparison, off by default) that checks the EMCal trigger alias bits from EventSelection/TriggerAliases against what the CTP recorded:

  • class: bc.triggerMask() against EMC-cluster, B-bunch classes taken from CTP/Config/Config by their input content
  • input: bc.inputMask() against the CTP inputs (0EMC, 0DMC, 0EG1/2, 0EJ1/2, 0DG1/2, 0DJ1/2, MTVX), with a fallback to the default input indices if an input is missing from the config

Once per run, the CTP-derived class masks are compared with the uploaded TriggerAliases object, including the Next50 map, and the result goes to hAliasCCDBStatusPerRun plus one summary log line. Per-trigger details are logged at debug level. Per-BC agreement is stored in hTrgAliasVsClass, hTrgClassVsInput, hTrgAliasVsInput, and in bcID- and run-resolved mismatch histograms.

The CCDB objects are loaded through a declarative CCDB table, so they are only fetched when the process switch is enabled. Link O2::DataFormatsCTP and O2Physics::AnalysisCCDB.

…lasses and inputs

Add an optional Run 3 QA (processCTPComparison, off by default) that
checks the EMCal trigger alias bits from EventSelection/TriggerAliases
against what the CTP recorded:

- class:  bc.triggerMask() against EMC-cluster, B-bunch classes taken
          from CTP/Config/Config by their input content
- input:  bc.inputMask() against the CTP inputs (0EMC, 0DMC, 0EG1/2,
          0EJ1/2, 0DG1/2, 0DJ1/2, MTVX), with a fallback to the default
          input indices if an input is missing from the config

Once per run, the CTP-derived class masks are compared with the
uploaded TriggerAliases object, including the Next50 map, and the
result goes to hAliasCCDBStatusPerRun plus one summary log line.
Per-trigger details are logged at debug level. Per-BC agreement is
stored in hTrgAliasVsClass, hTrgClassVsInput, hTrgAliasVsInput, and
in bcID- and run-resolved mismatch histograms.

The CCDB objects are loaded through a declarative CCDB table, so they
are only fetched when the process switch is enabled. Link
O2::DataFormatsCTP and O2Physics::AnalysisCCDB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 4 warnings, 🔕 0 disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant